#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QtMqtt/qmqttclient.h>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
protected:
    QMqttClient *pMqttClient;
private slots:
    void updateLogStateChange();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();
    void recv_message(const QByteArray &message, const QMqttTopicName &topic);

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_control_clicked();

    void on_set_clicked();

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
